﻿@model Dal.Entities.Doc4
@{
    Layout = null;
    ViewBag.Title = "Edit1";
    ViewBag.Nav = 2;
    ViewBag.Menu = 4;
    ViewBag.PassAudit = (Model == null ? false : Model.StatusAudit == 1 ? true : false);
    ViewBag.HasQuestion = Web.Controllers.Common.HasQuestion((int)ViewBag.DocID, 4);
    int ti = 1;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>病例录入</title>
    @Html.Partial("meta")
</head>
<body id="b_main">
    @Html.Partial("header")
    <!--/end #header-->
    <div id="wrapper">
        <!--holds pretty much everything-->
        @Html.Partial("menu")
        <!--/end #menu_main-->
        <div id="content">
            @Html.Partial("nav")
            @using (Html.BeginForm("edit4", "doc", FormMethod.Post, new { @class = "broom_form", id = "form1", style = "margin-left: 30px;" }))
            {
                @Html.HiddenFor(i => i.DocID)
                if (ViewBag.Result != null)
                {
                    if (ViewBag.Result == true)
                    {
                <div class="notification confirm">
                    <em>
                        <img src="/assets/img/icons/tick_circle.png" alt="" />操作成功 </em>
                </div>
                    }
                }
                <table cellspacing="0" summary="table" class="broom_table" width="90%">
                    <tbody>
                        <tr class="odd">
                            <td width="5%">
                                一
                            </td>
                            <td width="39%">
                                <span>诺和锐治疗方案</span>
                            </td>
                            <td>
                                @Html.RadioButtonFor(i => i.TreatmentCase, "由短效人胰岛素转为诺和锐治疗方案") 由短效人胰岛素转为诺和锐治疗方案<br />
                                @Html.RadioButtonFor(i => i.TreatmentCase, "初始即应用诺和锐治疗") 初始即应用诺和锐治疗
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "TreatmentCase", 4, "诺和锐治疗方案"))
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                1、
                            </td>
                            <td colspan="3">
                                诺和锐使用疗效
                            </td>
                        </tr>
                        <tr class="odd">
                            <td>
                                （1）
                            </td>
                            <td>
                                诺和锐使用疗效 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.EffectReduceBloodSugar) mmol/L
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "EffectReduceBloodSugar", 4, "诺和锐使用疗效"))
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                （2）
                            </td>
                            <td>
                                达标速度 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.EffectSpeed) 天即可达标
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "EffectSpeed", 4, "达标速度"))
                            </td>
                        </tr>
                        <tr class="odd">
                            <td>
                                2、
                            </td>
                            <td colspan="3">
                                安全性：
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                （1）
                            </td>
                            <td>
                                低血糖的发生频率 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.RadioButtonFor(i => i.SafeFrequency, "无", new { onclick = "hide('divrdSafeFrequency')" })
                                无<br />
                                @Html.RadioButtonFor(i => i.SafeFrequency, "有", new { id = "rdSafeFrequency", onclick = "show('divrdSafeFrequency')" })
                                有
                                <div id="divrdSafeFrequency" style="padding-left: 30px">
                                    发生频率 @Html.TextBoxFor(i => i.AdditionSafeFrequenceTimesPeerWeek) 次/周</div>
                                <script type="text/javascript">
                                    associate('rdSafeFrequency', 'divrdSafeFrequency');
                                </script>
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "SafeFrequency", 4, "低血糖的发生频率"))
                            </td>
                        </tr>
                        <tr class="odd">
                            <td>
                                （2）
                            </td>
                            <td>
                                对餐后高血糖，是否尝试过餐后追加胰岛素 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.RadioButtonFor(i => i.SafeTestAddYiDao, "尝试过") 尝试过<br />
                                @Html.RadioButtonFor(i => i.SafeTestAddYiDao, "没有尝试过") 没有尝试过
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "SafeTestAddYiDao", 4, "对餐后高血糖，是否尝试过餐后追加胰岛素"))
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                3、
                            </td>
                            <td>
                                方便性：进餐时间 <span style="color: Red">*</span>
                            </td>
                            <td>
                                @Html.RadioButtonFor(i => i.DinnerTime, "灵活") 灵活<br />
                                @Html.RadioButtonFor(i => i.DinnerTime, "一般") 一般
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "DinnerTime", 4, "方便性：进餐时间"))
                            </td>
                        </tr>
                        <tr class="odd">
                            <td colspan="4">
                                <br />
                                请概括描述该病例，包括患者的一般情况、治疗经过 （尤其是胰岛素剂量调整经过），以及您的治疗体会。<br />
                                <br />
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                病<br />
                                例<br />
                                描<br />
                                述
                            </td>
                            <td colspan="2">
                                @Html.TextAreaFor(i => i.CaseDescription, 8, 70, null)
                            </td>
                            <td>
                                @Html.Raw(Web.Controllers.Common.GetQuestionDesc((int)ViewBag.DocID, "CaseDescription", 4, "病例描述"))
                            </td>
                        </tr>
                    </tbody>
                </table>
                ViewBag.HideButton2 = true;
                @Html.Partial("savebutton")
            }
            <!--/end .tabber-->
        </div>
    </div>
    <div class="clear">
    </div>
    @Html.Partial("questionScript")
    @if ((ViewBag.Status == "edit" || ViewBag.Status == "") && ViewBag.PassAudit == false)
    {
        <script type="text/javascript">
            $(document).ready(function () {
                $("#form1").validate({
                    rules: {
                        EffectReduceBloodSugar: { required: true, number: true },
                        EffectSpeed: { required: true, number: true },
                        SafeFrequency: { required: true },
                        SafeTestAddYiDao: { required: true },
                        DinnerTime: { required: true },
                        AdditionSafeFrequenceTimesPeerWeek: { number: true }
                    }
                });
            });
        </script>
    }
</body>
</html>
